﻿namespace Gmantis.Uploader
{
    public enum FilesPerRequest
    {
        OneFilePerRequest,
        AllFilesInOneRequest,
        SplitFilesIntoMultipleRequests
    }

    public static class FilePackagerFactory
    {
        public static FilePackager Create(FilesPerRequest mode)
        {
            switch (mode)
            {
                case FilesPerRequest.OneFilePerRequest:
                    return new FilePackagerSingleFile();

                case FilesPerRequest.SplitFilesIntoMultipleRequests:
                    return new FilePackagerPartialFile();
            }
            return new FilePackagerMultiFile();
        }
    }
}
